package com.fantaike.algorithm.domain;

import lombok.Data;

/**
 * 链表节点类
 * @ClassName: Node
 * @Author: xuepeng
 * @Date: 2021/9/11 19:46
 * @Version: v1.0 文件初始创建
 */
@Data
public class Node<T> {
    //存储数据
    public T item;
    //下一个结点
    public Node<T> next;

    public Node(T item, Node<T> next) {
        this.item = item;
        this.next = next;
    }
}